//
//  NewView.m
//  UI_通讯_26
//
//  Created by dllo on 15/11/21.
//  Copyright © 2015年 liwenhan. All rights reserved.
//

#import "NewView.h"

@implementation NewView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.headImageView = [[UIImageView alloc]init];
        [self addSubview:self.headImageView];
        
        self.nameField = [[UITextField alloc]init];
        [self addSubview:self.nameField];
        
        self.cityField = [[UITextField alloc]init];
        [self addSubview:self.cityField];
        
        self.phoneField = [[UITextField alloc]init];
        [self addSubview:self.phoneField];
        
        self.qqField = [[UITextField alloc]init];
        [self addSubview:self.qqField];
        
        self.numberField = [[UITextField alloc]init];
        [self addSubview:self.numberField];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.headImageView.frame = CGRectMake(30, 10, 80, 80);
    self.headImageView.layer.cornerRadius = 40;
    self.headImageView.layer.masksToBounds = YES;
    self.headImageView.backgroundColor = [UIColor orangeColor];
    
    self.nameField.frame = CGRectMake(130, 10, self.window.frame.size.width - 130, 40);
    self.nameField.placeholder = @"姓名";
    
    self.numberField.frame = CGRectMake(130, 60, self.window.frame.size.width - 130, 40);
    self.numberField.placeholder = @"学号";
    
    self.cityField.frame = CGRectMake(130, 110, self.window.frame.size.width - 130, 40);
    self.cityField.placeholder = @"籍贯";
    
    self.phoneField.frame = CGRectMake(30, 175, self.window.frame.size.width - 30, 40);
    self.phoneField.placeholder = @"电话号码";
    
    self.qqField.frame = CGRectMake(30, 240, self.window.frame.size.width - 30, 40);
    self.qqField.placeholder = @"qq号码";
    
}






@end
